﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Inner.Master" CodeBehind="MonthView.aspx.vb" Inherits="LecturerAppointmentSystem.MonthView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <br />
    <br />
    <table class="GridViewClass">
        <tr>
            <td style="width:15%; vertical-align:top;" >
                <asp:Button ID="btn_dayView" runat="server" Text="Switch to day view" />
                <br />
                <br />
                <br />
                <br />
            </td>
            <td align="right" style="width:80%">
                <asp:Calendar ID="AppointmentCalendar" runat="server" BackColor="White" BorderColor="White"
        BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="50%"
        NextPrevFormat="FullMonth" Width="80%" SelectedDate='<%# DateTime.Now %>'>
        <DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
        <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" />
        <OtherMonthDayStyle ForeColor="#999999" />
        <SelectedDayStyle BackColor="Aqua" ForeColor="White" />
        <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True"
            Font-Size="12pt" ForeColor="#333399" />
        <TodayDayStyle BackColor="Turquoise" />
        <WeekendDayStyle ForeColor="DarkGray" BackColor="LightGray" />
        <DayStyle Height="100px" Width="100px" VerticalAlign="Top" HorizontalAlign="Left" 
        CssClass="CalendarControlClass"/>
    </asp:Calendar>&nbsp;</td>
        </tr>
    </table>

    
    <br />
    <br />
    <asp:SqlDataSource ID="LecturerCalendarDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:AppointmentsConnectionString %>"
        ProviderName="<%$ ConnectionStrings:AppointmentsConnectionString.ProviderName %>"
        
        SelectCommand="SELECT * FROM [AppointmentsWithLecturerAndStudentDetails] WHERE ([Lecturer_Fkid_UserId] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Lecturer_Fkid_UserId" QueryStringField="userId" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
